package com.xin.di.uav.common.enums;

/**
 * @author LTQ
 */
public enum PlatformCodeEnum {
    /**
     *
     */
    SCENIC_SPOT_EXPRESS(1, "景区配送"),
    MONTHLY_SETTLEMENT_PLATFORM(4, "月结平台"),
    CX(5, "顺丰速运+");

    private Integer code;
    private String name;


    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    PlatformCodeEnum(Integer code, String name) {
        this.code = code;
        this.name = name;
    }

    public static String getName(Integer code) {
        for (PlatformCodeEnum ele : values()) {
            if (ele.getCode().equals(code)) {
                return ele.getName();
            }
        }
        return null;
    }
}
